fn main() {
    // part one
    // let x = 5;
    // let y = x;
    // println!("{} - {}", x, y);

    // let s = "aabbccdd";
    // let s1 = s;
    // println!("{} {}", s, s1);
    
    // let a = String::from("aaooaaoo");
    // let a1 = a;
    // print!("{} {}", a, a1);

    // part two
    let o_ship = "str shio";
    print_param(o_ship);
    print!("{}", o_ship);
    
    let ownership = String::from("owner ship");
    print_param(ownership);
    //println!("{}", ownership);

    // let mut s = String::from("hello ");
    // s.push_str(" world");
    // println!("{}", s);
    // {
    //     let s = "123";
    //     println!("{}", s);
    // }
    // println!("{}", s);
    // change(s);
    // println!("{}", s);

}

fn print_param(param : String) {
    println!("in print param function: {}", param);
}

// fn change(mut s:String){
//     s.push_str("add");
// }
